package me.buick.util.snmp.core.dao.impl.snmp.os.linux.entity;

import java.io.Serializable;

import org.opengoss.snmphibernate.api.SmiType;
import org.opengoss.snmphibernate.api.annotation.MibIndex;
import org.opengoss.snmphibernate.api.annotation.MibObjectType;
import org.opengoss.snmphibernate.api.annotation.MibTable;
import org.opengoss.snmphibernate.api.annotation.MibObjectType.Access;

/**
 * 
 * java data converter for SNMP table ifTable ".1.3.6.1.2.1.2.2"
 * 
 * you can find the definition in IF-MIB-->mgmt-->mib-2-->interfaces-->ifTable
 * 
 * @author buick
 *
 */

@SuppressWarnings("serial")
@MibTable
public class HrIfEntry implements Serializable{

	@MibIndex(no = 1, length = 1)
	@MibObjectType(oid = ".1.3.6.1.2.1.2.2.1.1", smiType = SmiType.INTEGER, access = Access.READ) //$NON-NLS-1$
	private int ifIndex;
  
	@MibObjectType(oid = ".1.3.6.1.2.1.2.2.1.2", smiType = SmiType.DISPLAY_STRING, access = Access.READ) //$NON-NLS-1$
	private String ifDescr;
	
	@MibObjectType(oid = ".1.3.6.1.2.1.2.2.1.10", smiType = SmiType.INTEGER, access = Access.READ) //$NON-NLS-1$
	private long ifIn;
	
	@MibObjectType(oid = ".1.3.6.1.2.1.2.2.1.16", smiType = SmiType.INTEGER, access = Access.READ) //$NON-NLS-1$
	private long ifOut;
	
	public HrIfEntry(){
		
	}

	public int getIfIndex() {
		return ifIndex;
	}

	public void setIfIndex(int ifIndex) {
		this.ifIndex = ifIndex;
	}

	public String getIfDescr() {
		return ifDescr;
	}

	public void setIfDescr(String ifDescr) {
		this.ifDescr = ifDescr;
	}

	public long getIfIn() {
		return ifIn;
	}

	public void setIfIn(long ifIn) {
		this.ifIn = ifIn;
	}

	public long getIfOut() {
		return ifOut;
	}

	public void setIfOut(long ifOut) {
		this.ifOut = ifOut;
	}

}
